#!/usr/bin/env node

const cp  = require('child_process');

//let child = cp.spawn('./03-child.js');
let child = cp.spawn('./03-child.js', [], {detached: true, stdio: ['ignore', 1, 2]});

//child.stdout.pipe(process.stdout);

child.unref(); 
console.log(` I am father Process: ${process.pid}`);
setTimeout(()=>{
  console.log('Goodbye!');
  process.exit();
},5000);
